<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{title}}</title>
</head>
<body>
    <h3>{{ title }}</h3>
    <table border="1">
        {% for i in post_list %}
            <tr>
                <th>{{ i.id }}</th>
                <th>{{ i.title }}</th>
                <th>{{ i.content  }}</th>
                <th>{{ i.author }}</th>
                <th>{{ i.pub_date }}</th>
            </tr>
        {% endfor %}
    </table>
    <br>
    {% if is_paginated %}
     <div class="pagination">
         <span class="page-links">
             {% if page_obj.has_previous %}
                <a href="{% url 'myapp:LListVV' %}?page=1">上一页</a>
             {% endif %}
             {% if page_obj.has_next %}
                <a href="{% url 'myapp:LListVV' %}?page={{page_obj.next_page_number}}">下一页</a>
             {% endif %}
            <br><br>
            <span class="page-current">
                第{{ page_obj.number }}页，
                共{{ page_obj.paginator.num_pages}}页。
            </span>
         </span>
     </div>
    {% endif %}
</body>
</html>